package entity

import (
	"hobby-mate/common"
	"time"
)

// ActivityCheckin 活动签到信息
type ActivityCheckin struct {
	CheckinId          string    `json:"checkinId" form:"checkin_id"   gorm:"primary_key;comment:签到记录唯一标识符"`
	ActivityId         int       `json:"activityId" form:"activity_id"  gorm:"not null;comment:活动 ID"`
	CheckInAccountIds  string    `json:"checkInAccountIds" form:"check_in_account_ids" gorm:"comment:已经签到的人"`
	CheckOutAccountIds string    `json:"checkOutAccountIds" form:"check_out_account_ids" gorm:"comment:已经签退的人"`
	CheckInTime        time.Time `json:"checkInTime" form:"check_in_time" gorm:"comment:签到时间"`
	CheckOutTime       time.Time `json:"checkOutTime" form:"check_out_time" gorm:"comment:签退时间"`
	CheckInLocation    string    `json:"checkInLocation" form:"checkIn_location" gorm:"comment:签到位置"`
	CheckOutLocation   string    `json:"checkOutLocation" form:"check_out_location" gorm:"comment:签退位置"`
	Status             string    `json:"status" form:"status" gorm:"not null;comment:签到状态"`
	Remark             string    `json:"remark" form:"remark" gorm:"comment:备注"`
	common.BaseEntity
}

func (ActivityCheckin) TableName() string {
	return "t_activity_checkin"
}
